﻿<UserControl x:Class="GrooveSharp.CompactInfo"
             xmlns:local="clr-namespace:GrooveSharp"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="80" d:DesignWidth="200" SizeChanged="UserControl_SizeChanged">
    <DockPanel LastChildFill="True"  Name="panelCompact">
        <Image Width="80" Height="80" DockPanel.Dock="Left" Name="imageAlbum" Source="{Binding Image}"></Image>
        <StackPanel Orientation="Vertical" >
            <TextBlock Name="labelArtist" VerticalAlignment="Top" Foreground="#FFF7FAF5" FontSize="11"  FontWeight="SemiBold" Text="{Binding Artist}" HorizontalAlignment="Center" TextWrapping="WrapWithOverflow" Margin="0,2"></TextBlock>
            <TextBlock Name="labelAlbum" VerticalAlignment="Top" Foreground="#FFF7FAF5" FontSize="10" Text="{Binding Album}" HorizontalAlignment="Center" TextWrapping="WrapWithOverflow" Margin="0,2" />
            <TextBlock Name="labelTitle" VerticalAlignment="Top" Foreground="#FFF7FAF5" FontSize="11"  Text="{Binding Title}" FontWeight="SemiBold" HorizontalAlignment="Center" TextWrapping="WrapWithOverflow" Margin="0,2" />
            <local:Rating RatingValue="{Binding Rating, Mode=TwoWay}" Width="80" Margin="0,2" x:Name="theRating" />
        </StackPanel>

    </DockPanel>
</UserControl>
